$inputHeight: 32px;
$inputBorder: #cccccc;
$inputBack: #fff;
$iconColor: #707070;
$focusColor: dodgerblue;
$loginFormWidth: 920px;
$loginFormHeight: 500px;
$loginFormImg: 460px;
.login {
    display: block;
    height: 100vh;
    background: url(../../img/kexie_login_bk.jpg) no-repeat;
    background-position: 50% 50%;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    .loginPlatformName {
        padding: 0 1rem;
        padding-top: .4rem;
        font-size: 1.6rem;
        text-align:center;
        margin-top: 0;
        white-space: nowrap;
    }
    
    .loginPcForm {
        position: absolute;
        width: $loginFormWidth;
        border-radius: 5px;
        height: $loginFormHeight;
        background: white;
        box-shadow: 0px 0px 12px 5px rgba(14, 151, 243, 0.1);
        top: 50%;
        left: 50%;
        margin-top: -($loginFormHeight / 2);
        margin-left: -($loginFormWidth / 2);
        transition: all 1s;
        -moz-transition: all 1s;
        /* Firefox 4 */
        -webkit-transition: all 1s;
        /* Safari 和 Chrome */
        -o-transition: all 1s;
        /* Opera */
        z-index: 2;
        >div{
            display: flex;
            height: 100%;
            position: relative;
            .loginImg {
                flex: 0 0 $loginFormImg;
                background: url(../../img/kexie_login_img.jpg) no-repeat;
                background-size:contain;
            }
            .loginFormArea {
                flex: auto;
            }
            .loginInputForm {

                box-sizing: border-box;
                padding-top: 1px;
                height: 100%;
                left: 0;
                top: 0;
                width: 100%;
                header {
                    font-size: 18px;
                    margin-top: 0px;
                    padding-left: 40px;
                    padding-right: 40px;
                    box-sizing: border-box;
                    color: #333333;
                    margin-bottom: 50px;
                    &::before {
                        content: "";
                        display: block;
                        width: 80px;
                        height: 80px;
                        background: url(../../img/kexie_logo.jpg) no-repeat;
                        background-size: contain;
                        margin: 0 auto;
                        margin-top: 30px;
                    }
                }
                >section {
                    padding: 0 40px;
                    button {
                        display: block;
                        width: 100%;
                        margin: 0 auto;
                        margin-top: 10px;
                        border-radius: 3px;
                    }
                    .clearFix {
                        padding-bottom: 10px;
                    }
                    .clearFix::after {
                        visibility: hidden;
                        display: block;
                        font-size: 0;
                        content: " ";
                        clear: both;
                        height: 0;
                    }
                }
            }
        }
    }
}
.inputBox {
    display: flex;
    margin-bottom: 30px;
    height: $inputHeight;
    >i {
        flex: 0 0 50px;
        font-size: 24px;
        color: $iconColor;
    }
    >div {
        flex: auto;
        position: relative;
        input {
            box-sizing: border-box;
            width: 100%;
            height: 100%;
            outline: none;
            border: none;
            border: 1px solid $inputBack;
            border-bottom: 1px solid $inputBorder;
            border-radius: 0;
            font-size: 13px;
            padding: 10px 12px;
            padding-top: 12px;
            padding-right: 70px;
            color: #333;
        }
        .inputBoxLabel {
            padding: 0 4px;
            background: transparent;
            position: absolute;
            left: 5px;
            top: 4px;
            color: $focusColor;
            transition: all .4s linear;
            font-size: 13px;
            z-index: -1;
            opacity: 0;
        }
        .verifyCode {
            display: block;
            position: absolute;
            right: 2px;
            top: 1px;
            max-height: calc($inputHeight - 2px);
            width: 60px;
            height: 30px;
        }
        .verifyCodeLoading {
            position: absolute;
            right: 15px;
            top: 5px;
        }
        .showVerifyCode {
            display: block;
        }
        .showVerifyCodeHideLoading {
            display: none;
        }
        &:focus-within {
            input {
                border-color: $focusColor;
            }
            .inputBoxLabel {
                background: $inputBack;
                opacity: 1;
                top: -12px;
                z-index: 1;
            }
        }
    }
}
@keyframes login-small {
    0% {
        transform: scale(1);
        -moz-transform: scale(1);
        /* Firefox 4 */
        -webkit-transform: scale(1);
        /* Safari 和 Chrome */
        -o-transform: scale(1);
        /* Opera */
        -ms-transform: scale(1);
        /* IE 9 */
    }
    100% {
        opacity: 0;
        transform: scale(0.2);
        -moz-transform: scale(0.1);
        /* Firefox 4 */
        -webkit-transform: scale(0.2);
        /* Safari 和 Chrome */
        -o-transform: scale(0.1);
        /* Opera */
        -ms-transform: scale(0.1);
        /* IE 9 */
    }
}
.loginHideInputForm {
    animation:login-small 0.6s linear forwards;
}

.lodingSpinner {
    display: none;
    width: 80px;
    height: 80px;
    margin: auto;
    background-color: rgba(17, 148, 214, 0.768);
    -webkit-animation: sk-rotating-plane 1.2s infinite ease-in-out;
    animation: sk-rotating-plane 1.2s infinite ease-in-out;
    z-index: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -40px;
    margin-top: -80px;
    z-index: 2;
    opacity: 0;
    transform: scale(.3,.3);
    transition: all .6s linear;
    -webkit-transition: all .6s linear;
}
.lodingSpinner.active {
    display: block;
}
@keyframes sk-rotating-plane {
    0% {
        -webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg);
        transform: perspective(120px) rotateX(0deg) rotateY(0deg);
    }
    50% {
        -webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
        transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
    }
    100% {
        -webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
        transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
    }
}
@keyframes loadingActiveFrames {
    0% {
        opacity: 0;
        transform: scale(0.2,0.2);
    }
    100% {
        opacity: 1;
        transform: scale(1,1);
    }
}
.loginLoadingActive {
    display:block !important;
    opacity: 1;
    transform: scale(1,1);
}

// --- 手机端登录页面
.mobileLoginForm {
    $mobileLoginHeaderHeight: 44px;
    display: block;
    height: 100%;
    
    header {
        height: $mobileLoginHeaderHeight;
        line-height: $mobileLoginHeaderHeight;
        background: rgba(255,255,255, .4);
        text-align: center;
        font-size: 1.4rem;
        color: #333;
        backdrop-filter: blur(10px);
    }
    >div {
        height: calc(100% - $mobileLoginHeaderHeight);
        position: relative;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        
    }
}
.mobileLoginFormInputArea {
    display: block;
    padding: 0 10vw;
    padding-top: 20vh;
    >form{
        background: rgba(255,255,255, .3);
        backdrop-filter: blur(10px);
        padding: 2.6rem;
        // padding-bottom: 20px;
        >section {
            display: block;
            // padding: 15px 2.6rem;
            padding-top: 3rem;
        
            margin-bottom: 30px;
            border-radius: 0px;
            overflow: hidden;
            label>i {
                color: #fff;
            }
            input {
                background-color: transparent;
                border-top-width: 0;
                border-left-width: 0;
                border-right-width: 0;
                color: #fff;
            }
            input+span {
                display: none;
                background-color: transparent;
            }
        }
    }
    >form>button {
        display: block;
        width: 100%;
        margin: 0 auto;
        margin-top: 6rem;
    }
}
.registeForm {
    width: 480px !important;
    height: 640px !important;
    header {
        margin: 30px 0 !important;
        margin-top: 50px !important;
    }
    div[class*="ant-card"] {
        border: none !important;
        button {
            width: 224px !important;
        }
        button[type="submit"] {
            margin-top: 30px !important;
        } 
    }
}